<div id="titulo">Agregar Provincia</div>
<?php echo form_open('process_provincias/save', array('name' => 'provincia','id' => 'commentForm'));?>
	<table class="tablaform" width="100%" border="0">
		<tr>
			<td><b>Nombre:</b> </td>
			<td><input type="text" name="name" class="required" id="name" maxlength="100" size="40" value="<?php echo set_value('name') ?>" /><?php echo form_error('name') ?></td>
		</tr>
        <tr>
			<td><b>Pais:</b> </td>
			<td>
            			<select name="country" class="required" id="country">
<?php
	while ($pais = current($paises)) {
?>
							<option value="<?php echo key($paises); ?>"<?php echo set_select('country', key($paises)); ?>><?php echo $pais; ?></option>
<?php
		next($paises);
	}
?>                    
                    	</select><?php echo form_error('country') ?>
            </td>
		</tr>
     	<tr><td colspan="2"><hr /></td></tr>
		<tr><td><input type="submit" value="Guardar" /></td>
		 <td><a href="<?php echo site_url().'/process_provincias' ?>"><input type="button" value="Atras" align="center"/></a></td>
		</tr>
	</table>
</form>